package com.ee.lock.utills;

import lombok.Data;


public enum CommonEnum implements BaseErrorInfoInterface{
    SUCCESS("200", "success"),
    FAILED("-1", "fail");

    /**
     * 错误码
     */
    private final String resultCode;
    /**
     * 错误描述
     */
    private final String resultMsg;

    CommonEnum(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }

}
